package com.example.demo.mapper;

import com.example.demo.entity.CourseRelation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface CourseRelationMapperInt extends JpaRepository<CourseRelation, String>{
    @Query(name="findByCid",nativeQuery = true,value="select * from courserelation where cid=:cid")
    List<com.example.demo.entity.CourseRelation> findByCid (Integer cid);
}
